import request from '@/common/js/request.js';

//获取部门树
export const getDepartmentTree = (data) => {
	return request.post('/api/depot/department_tree', data);
};

//根据部门获取员工列表
export const getDepartAdminsList = (data) => {
	return request.post('/api/depot/depart_admins', data);
};

//获取管理员所属部门
export const getUserDepartment = (data) => {
	return request.post('/api/depot/user_department', data);
};

//获取所有物品列表
export const getDepartProductsList = (data) => {
	return request.post('/api/depot/goods_lists', data);
};

//根据部门id获取物品列表
export const getDepartProductsListByDepartmentId = (data) => {
	return request.post('/api/depot/depart_goods_page', data);
};

//添加员工和物品关联
export const add_goods_admin = (data) => {
	return request.post('/api/depot/add_goods_admin', data);
};

//根据员工id获取物品列表
export const admin_goods = (data) => {
	return request.post('/api/depot/admin_goods', data);
};
